import React from 'react'
import { Icon } from 'antd';
import FBHeaderView from '../component/form-header/View';
import {WeaLocaleProvider} from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default class Success extends React.Component {
  render() {
    const { title, shortkey } = this.props;

    return (
      <div className='wea-edc-success-box'>
        <FBHeaderView data={{}} />
        <div className='wea-edc-success-content'>
          <div style={{ color: '#71B300', fontSize: 50 }}><Icon type="check-circle" /></div>
          <div style={{ fontSize: 18, paddingBottom: 3 }}>{title}</div>
          <p style={{ fontSize: 14, color: '#777' }}>{getLabel('502637','提交成功')}</p>
        </div>
          {
              shortkey ? <footer><a href={`/mobilemode/showdata.jsp?key=${shortkey}`}>{getLabel('502638','点击查看提交的表单数据')}</a></footer>
                  : null
          }

      </div>
    )
  }
}